package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "gulimall-order",url = "localhost:7004/")
public interface OrderFeginService {

//    根据订单号查询订单状态
    @RequestMapping(value = "/order/order/status",method = RequestMethod.GET)
    Integer getOrderStatus(@RequestParam("orderSn") String orderSn);

    @RequestMapping("/order/order/info/{id}")
    public R info(@PathVariable("id") Long id);
}
